package com.pig4cloud.pig.village.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 福利类型数据库类
 * @author limbray.li
 * @date 2021/6/5
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("config_welfare")
public class Welfare extends Model<Welfare> {
	private static final long serialVersionUID = 1L;

	@TableId(value = "id", type = IdType.ASSIGN_ID)
	private Long id;
	@JsonIgnore
	private LocalDateTime createTime;
	@JsonIgnore
	private LocalDateTime updateTime;
	@JsonIgnore
	private String createBy;
	@JsonIgnore
	private String updateBy;
	@JsonIgnore
	@TableLogic(value = "0",delval = "1")
	private String delFlag;
	@JsonIgnore
	private Integer tenantId;

	@ApiModelProperty(value = "福利名称")
	private String welfareName;

	@ApiModelProperty(value = "福利代码")
	private String welfareCode;

	@ApiModelProperty(value = "重大违规子项名称")
	private String subWelfareName;

	@ApiModelProperty(value = "重大违规子项代码")
	private String subWelfareCode;

	@ApiModelProperty(value = "基金id")
	private String fundId;
}
